package com.ruoyi.pos.domain.dto.cashier.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 收银员登录请求DTO
 * 
 * @author ruoyi
 * @date 2025-01-30
 */
@Data
@ApiModel(description = "收银员登录请求")
public class CashierLoginRequest {

    @ApiModelProperty(value = "收银员编码", required = true)
    @NotBlank(message = "收银员编码不能为空")
    private String cashierCode;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "设备ID", required = true)
    @NotNull(message = "设备ID不能为空")
    private Long deviceId;

    @ApiModelProperty(value = "登录IP")
    private String loginIp;
}